package com.lzy.product.apis.impl;

import com.github.pagehelper.PageInfo;
import com.lzy.framework.core.orm.db.Pager;
import com.lzy.product.apis.AgentCommissionBillServiceApi;
import com.lzy.product.dtos.agent.AgentBillScreenListDto;
import com.lzy.product.dtos.agent.AgentCommissionBillDto;
import com.lzy.product.dtos.agent.AgentCommissionBilltStatisticsDto;
import com.lzy.product.service.AgentCommissionBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by WIN7 on 2018/04/14.
 */
@Service
public class AgentCommissionBillServiceApiImpl implements AgentCommissionBillServiceApi {

    @Autowired
    AgentCommissionBillService agentCommissionBillService;

    @Override
    public Long insert(AgentCommissionBillDto dto) {
        return agentCommissionBillService.insert(dto);
    }

    @Override
    public Boolean update(AgentCommissionBillDto dto) {
        return agentCommissionBillService.update(dto);
    }

    @Override
    public Boolean delete(Long id) {
        return agentCommissionBillService.delete(id);
    }

    @Override
    public Boolean remove(Long id) {
        return agentCommissionBillService.remove(id);
    }

    @Override
    public AgentCommissionBillDto findById(Long id) {
        return agentCommissionBillService.findById(id);
    }

    @Override
    public List<AgentCommissionBillDto> query(AgentCommissionBillDto dto) {
        return agentCommissionBillService.query(dto);
    }

    @Override
    public PageInfo<AgentCommissionBillDto> selectList(Pager pager, AgentCommissionBillDto dto) {
        return agentCommissionBillService.selectList(pager,dto);
    }

    @Override
    public List<AgentCommissionBilltStatisticsDto> statisticsBillForMonth() {
        return agentCommissionBillService.statisticsBillForMonth();
    }

    @Override
    public List<AgentCommissionBilltStatisticsDto> statisticsBillForDay() {
        return agentCommissionBillService.statisticsBillForDay();
    }

    @Override
    public AgentCommissionBilltStatisticsDto statisticsBill() {
        return agentCommissionBillService.statisticsBill();
    }

    @Override
    public BigDecimal getCommAmount(AgentCommissionBillDto dto) {
        return agentCommissionBillService.getCommAmount(dto);
    }

    @Override
    public List<AgentBillScreenListDto> selectScreenList(Integer type) {
        return agentCommissionBillService.selectScreenList(type);
    }

    @Override
    public List<AgentBillScreenListDto> selectSystemList(Long sourceId,Integer type) {
        return agentCommissionBillService.selectSystemList(sourceId,type);
    }

}
